<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@page import = "java.util.Random" %>
<%@ page import="nc.vo.sm.UserVO"%>
<%@ page import="nc.vo.ebvp.logindex.pojo.Constant"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/WEB-INF/lang-support.tld" prefix="lang-support"%>
<html>
	<head>
		<%
			String basepath = request.getContextPath();
			String url = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
			
			String cssSignal = "";
			String textfieldReadonlyAttr = "";
			String suppName = "";
			String random="";
			Object obj = session.getAttribute("suppName");
			if (obj != null) {
				suppName = obj.toString();
			}
		%>

		<c:if test="${IS_READ_ONLY != null}">
			<%
				cssSignal = "readonly_";
				textfieldReadonlyAttr = "readonly";
			%>
		</c:if>
		<script type="text/javascript">
	   		var ebvp_context="<%=basepath%>";
			var strSelLan = "${sel_lan}";
	 	</script>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title resid="0ec22180-100152">NC 电子商务采购平台-联系人信息维护</title>
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/base/base.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/frame/src/css/frame.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/frame/src/css/myframe.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/frame/src/css/header.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/frame/src/css/footer.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/frame/src/css/register.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/frame/src/css/myregister.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/frame/src/css/validator.css" />

		<script type="text/javascript"
			src="<%=basepath%>/commonres/base/jquery-1.7.2.min.js"></script>
		<script type="text/javascript"
			src="<%=basepath%>/commonres/base/common.js"></script>
		<script type="text/javascript"
			src="<%=basepath%>/commonres/common/frame/src/js/schedulemain.js"></script>
		<script type="text/javascript"
			src="<%=basepath%>/commonres/tools/util.js"></script>
		<!-- UI Plugin -->
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/tipinside/src/css/tipinside.css" />
		<script type="text/javascript"
			src="<%=basepath%>/commonres/common/tipinside/src/js/UI.TipInside.js"></script>
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/finish_steps/src/css/finish_steps.css" />
		<script type="text/javascript"
			src="<%=basepath%>/commonres/common/finish_steps/src/js/UI.FinishSteps.js"></script>
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/navigator/src/css/navigator.css" />
		<script type="text/javascript"
			src="<%=basepath%>/commonres/common/navigator/src/js/UI.Navigator.js"></script>
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/drop_menu/src/css/drop_menu.css" />
		<script type="text/javascript"
			src="<%=basepath%>/commonres/common/drop_menu/src/js/UI.DropMenu.js"></script>
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/column_menu/src/css/column_men.css" />
		<script type="text/javascript"
			src="<%=basepath%>/commonres/common/column_menu/src/js/UI.ColumnMenu.js"></script>
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/operation_flow/src/css/operation_flow.css" />
		<script type="text/javascript"
			src="<%=basepath%>/commonres/common/operation_flow/src/js/UI.OperationFlow.js"></script>
		<link
			href="<%=basepath%>/commonres/common/frame/src/css/InfoChange.css"
			rel="stylesheet" type="text/css" />
		<link
			href="<%=basepath%>/commonres/common/frame/src/css/JqueryTab.css"
			rel="stylesheet" type="text/css" />
		<link href="<%=basepath%>/commonres/common/frame/src/css/tab.css"
			rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>/commonres/common/frame/src/css/subpage.css" />

		<script language="javascript" type="text/javascript"
			src="<%=basepath%>/commonres/common/frame/src/js/JqueryTab.js"></script>
		<script language="javascript" type="text/javascript"
			src="<%=basepath%>/commonres/common/frame/src/js/ControlPage.js"></script>
		<script language="javascript" type="text/javascript"
			src="<%=basepath%>/commonres/common/frame/src/js/InfoChange.js"></script>
		<script
			src="<%=url%>/web/component/webpub/tools/jquery.validation/jquery.validate.js"
			type="text/javascript" charset="utf-8"></script>
		<script
			src="<%=url%>/web/component/webpub/tools/jquery.validation/additional-methods.js"
			type="text/javascript" charset="utf-8"></script>
		<script language="javascript" type="text/javascript"
			src="<%=basepath%>/commonres/common/frame/src/js/messages_cn.js"></script>
		<script type="text/javascript"
			src="<%=basepath%>/commonres/common/frame/src/js/selfservice_menu.js"></script>
		<script type="text/javascript"
			src="<%=basepath%>/commonres/common/frame/src/js/customized_validation.js"></script>
		<script type="text/javascript"
			src="<%=basepath%>/commonres/common/frame/src/js/selfservice_contractlist.js"></script>

			<script type="text/javascript">
	    		$(function() {
		   			$( "#linkmanMaintain" ).parents("ul").find(".current").removeClass("current");
					$( "#linkmanMaintain" ).addClass("current");
				});
	    		
	    		$(function() {
			 		$( "#linkmanForm input" ).not("[name='position]").UITipInside({ 'required': true });
				});
				
				$(document).ready(function(){
					$("#linkmanForm").validate();
				});
				
   			</script>
   				
		    <lang-support:langres resid="ec22400_0;ec22180_0" filename="selfserv_contractlist.properties"/>
	</head>

	<body>
		<!-- Document Content -->
		<div class="float_center doc_width">
			<div class="doc_content_shadow">
				<div class="doc_content">
					<div id="columnLeft" class="frame_column_left">
					</div>
					<div class="frame_right_miniheight">
						<div class="location_bar">
							<a href="<%=basepath%>/infopub/pubmain" resid="0ec22400-000012">首页</a>
							<a resid="0ec22180-100151">自助服务</a>
							<span resid="0ec22180-100153">联系人信息维护</span>
						</div>

						<div class="subpage_table" style="padding-left:0; padding-right:0">
						<!-- <div id="linkmanInfo" > -->
							<form id="linkmanForm" name="linkmanForm" method="post">
								<div class="margin10"></div>
								<table border="0" cellpadding="0" cellspacing="0">
									<thead>
										<tr>
											<td width="70px" resid="0ec22180-100154">
												姓名
											</td>
											<td width="150px" resid="0ec22180-100155">
												公司固定电话（加区号）
											</td>
											<td width="90px" resid="0ec22180-100061">
												手机
											</td>
											<td width="180px" resid="0ec22180-100063">
												电子邮箱
											</td>
											<td width="130px" resid="0ec22180-100401">
												职务
											</td>
											<td width="70px" resid="0ec22180-100402">
												性别
											</td>
											<td width="50px" class="last_column" resid="0ec22180-100095">
												操作
											</td>
										</tr>
									</thead>
									<tbody>
										<c:if test="${form.infoLinkManVos!=null}">
											<c:forEach items="${form.infoLinkManVos}" var="linkman"
												varStatus="index">
												<tr>
													<%
														Random rand = new Random();
														int i = rand.nextInt(10000000);
														random = String.valueOf(i);
													%>
													<td>
														<div class="float_left">
															<div class="form_row">
																<div class="form_field">
																	<label>
																		<input name="linkman" id="linkman<%=random %>" value="${linkman.linkman}"
																			class="<%=cssSignal%>textfield pd_5x2px w_56px" 
																			<%=textfieldReadonlyAttr%> />
																		<input type="hidden" name="pk_linkman" value="${linkman.pk_linkman}" />
																	</label>
																</div>
															</div>
														</div>
													</td>
													<td>
														<div class="float_left">
															<div class="form_row">
																<div class="form_field">
																	<label>
																		<input name="tel" id="tel<%=random %>" value="${linkman.tel}"
																			class="<%=cssSignal%>textfield pd_5x2px w_126px"
																			<%=textfieldReadonlyAttr%> />
																	</label>
																</div>
															</div>
														</div>
													</td>
													<td>
														<div class="float_left">
															<div class="form_row">
																<div class="form_field">
																	<label>
																		<input name="mobile" id="mobile<%=random %>" value="${linkman.mobile }"
																			class="<%=cssSignal%>textfield pd_5x2px w_86px"
																			<%=textfieldReadonlyAttr%> />
																	</label>
																</div>
															</div>
														</div>
													</td>
													<td>
														<div class="float_left">
															<div class="form_row">
																<div class="form_field">
																	<label>
																		<input name="email" id="email<%=random %>" value="${linkman.email }"
																			class="<%=cssSignal%>textfield pd_5x2px w_178px"
																			<%=textfieldReadonlyAttr%> />
																	</label>
																</div>
															</div>
														</div>
													</td>
													<td>
														<div class="float_left">
															<div class="form_row">
																<div class="form_field">
																	<label>
																		<input name="position" id="position<%=random %>" value="${linkman.position}"
																			class="<%=cssSignal%>textfield pd_5x2px w_106px" 
																			<%=textfieldReadonlyAttr%> />
																	</label>
																</div>
															</div>
														</div>
													</td>
													<td>
														<div class="float_left">
															<div class="form_row">
																<div class="form_field">
																	<label>
																		<select name="gender" style="width:50px">
																			<option value="0"
																				<c:if test="${0==linkman.gender|| null==linkman.gender|| ''==linkman.gender}">selected</c:if>>
																				 
																			</option>
																			<option value="1"
																				<c:if test="${1==linkman.gender}">selected</c:if>>
																				男
																			</option>
																			<option value="2"
																				<c:if test="${2==linkman.gender}">selected</c:if>>
																				女
																			</option>
																		</select>
																		<!--<input name="gender" id="gender<%=random %>" value="${linkman.gender}"
																			class="<%=cssSignal%>textfield pd_5x2px w_56px" 
																			<%=textfieldReadonlyAttr%> />
																		<input type="hidden" name="gender" value="${linkman.gender}" />
																	-->
																	</label>
																</div>
															</div>
														</div>
													</td>
													<td class="last_column">
														<a  id="deleteLinkManBtn${index.count}"  class="btn_delete mrg_0x25px" style="cursor:pointer"></a>
													</td>
												</tr>
											</c:forEach>
										</c:if>
									</tbody>
								</table>
								<div class="float_right w_764px">
									<a  id="addLinkManBtn" class="btn_add" resid="0ec22180-100064">添加联系人</a>
								</div>
								
								<div class="float_right w_764px">
									<a  id="linkManSubmit" class="btn_orange" style="float:right">
										 <span class="w_80px h_22px" resid="0ec22180-100148">提交</span> 
									</a>
									<c:if test="${ERROR_MESSAGE != null}">
										<span style="float:right; color:red">${ERROR_MESSAGE}</span>
										<img style="float:right;" src="<%=basepath%>/commonres/common/frame/src/img/img_error.png" />
									</c:if>
									<c:if test="${SUCCESS_MESSAGE != null}">
										<span style="float:right; color:red">${SUCCESS_MESSAGE}</span>
										<img style="float:right;" src="<%=basepath%>/commonres/common/frame/src/img/img_success.png" />
									</c:if>
								</div>
								
								<%--
								<div class="bar764_1btn">
									<div class="block1">
										<c:if test="${ERROR_MESSAGE != null}">
											<img
												src="<%=basepath%>/commonres/common/frame/src/img/img_error.png" />${ERROR_MESSAGE}
										</c:if>
										<c:if test="${SUCCESS_MESSAGE != null}">
											<img
												src="<%=basepath%>/commonres/common/frame/src/img/img_success.png" />${SUCCESS_MESSAGE}
										</c:if>
									</div>
									<div class="block2">
										<a  id="linkManSubmit" class="btn_orange">
											 <span class="w_80px h_22px" resid="0ec22180-100148">提交</span> 
										</a>
									</div>
								</div>
								--%>
								<div class="margin24"></div>
							</form>
						</div>
						</div>
					</div>
				</div>
			</div>
		<!-- </div> -->
		<script type="text/javascript">
			changeLan();
		</script>
	</body>
</html>